<?php
/*
 * APP管理
 */
class Libs_App {

    protected static $_dbAdmin;

    /**
     * 数据库链接
     */
    public static function loadDb() {
        self::$_dbAdmin = Db_Admin::instance();
    }

    /*
     * 获得所有APP
     */
    public static function getAllApp(){
        self::loadDb();
        $sql = "SELECT * FROM global_app WHERE status = 0 ";
        return self::$_dbAdmin->getAll($sql);
    }



}

?>
